package com.design.command.remotecontrol1;

// 音响开命令
class StereoOnCommand implements Command {
    private Stereo stereo;

    public StereoOnCommand(Stereo stereo) {
        this.stereo = stereo;
    }

    @Override
    public void execute() {
        stereo.turnOn();
        stereo.setCD();
        stereo.setVolume(50);
    }
}
